<template>
    <div>

      <el-card>
          <el-row :gutter="2">
              <el-col :span="8">
                  <el-input placeholder="请输入内容" v-model="queryInfo.query">
                      <el-button slot="append" icon="el-icon-search"></el-button>

                  </el-input>


              </el-col>
              <el-col :span="4">
                  <el-button type="primary">立即添加</el-button>

              </el-col>
          </el-row>
          <el-row>
            <el-table>




            </el-table>




          </el-row>



      </el-card>



    </div>

</template>

<script>
    export default {
        name: "List",
        data(){
            return{
                searchValue:'',
                queryInfo:{
                    query:'',
                    pagenum:1,
                    pagesize:10
                }

            }
        },created() {
            this.getGoodslist()
        },
        methods:{
           async getGoodslist(){
               let {data:res}  = await this.$http.get('goods',{parmas:this.queryInfo})
               if (res.meta.status != 200) {
                   return
               }
                this.$message.success('获取商品列表成功')


           }
        }

    }
</script>

<style scoped>

</style>
